<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>NEXUS - 未来已来</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #000;
            color: white;
            overflow-x: hidden;
            cursor: none;
        }

        /* 3D 网格背景 */
        .grid-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
                linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px);
            background-size: 100px 100px;
            animation: gridMove 20s linear infinite;
            z-index: -2;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(100px, 100px); }
        }

        /* 动态DNA螺旋背景 */
        .dna-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.3;
        }

        .dna-strand {
            position: absolute;
            width: 4px;
            height: 100vh;
            background: linear-gradient(180deg, #ff0080, #00ff80, #0080ff, #ff0080);
            border-radius: 2px;
            animation: dnaFloat 15s ease-in-out infinite;
        }

        @keyframes dnaFloat {
            0%, 100% { transform: translateX(0) rotateZ(0deg); }
            25% { transform: translateX(50px) rotateZ(90deg); }
            50% { transform: translateX(0) rotateZ(180deg); }
            75% { transform: translateX(-50px) rotateZ(270deg); }
        }

        /* 超炫光标 */
        .custom-cursor {
            position: fixed;
            width: 40px;
            height: 40px;
            background: radial-gradient(circle, rgba(0, 255, 255, 0.8), rgba(255, 0, 128, 0.6), transparent);
            border-radius: 50%;
            pointer-events: none;
            z-index: 10000;
            mix-blend-mode: screen;
            transition: all 0.1s ease;
        }

        .cursor-trail {
            position: fixed;
            width: 8px;
            height: 8px;
            background: #00ffff;
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            box-shadow: 0 0 10px #00ffff;
        }

        /* 革命性导航 - 全息投影风格 */
        .holo-nav {
            position: fixed;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            display: flex;
            gap: 40px;
            background: rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(20px);
            padding: 15px 30px;
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 50px;
            box-shadow: 
                0 0 30px rgba(0, 255, 255, 0.3),
                inset 0 0 30px rgba(0, 255, 255, 0.1);
        }

        .holo-nav a {
            color: #00ffff;
            text-decoration: none;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            padding: 10px 20px;
            transition: all 0.3s ease;
            border-radius: 25px;
        }

        .holo-nav a:hover {
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
            transform: scale(1.1);
        }

        .holo-nav a::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #00ffff, #ff0080, #00ff80, #00ffff);
            border-radius: 27px;
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .holo-nav a:hover::before {
            opacity: 1;
        }

        /* 主视觉区域 - 3D倾斜布局 */
        .hero-3d {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            perspective: 1000px;
            position: relative;
            overflow: hidden;
        }

        .hero-content-3d {
            text-align: center;
            transform: rotateX(10deg) rotateY(-5deg);
            animation: float3d 6s ease-in-out infinite;
            z-index: 10;
        }

        @keyframes float3d {
            0%, 100% { transform: rotateX(10deg) rotateY(-5deg) translateZ(0px); }
            50% { transform: rotateX(5deg) rotateY(5deg) translateZ(50px); }
        }

        .glitch-title {
            font-size: 6rem;
            font-weight: 900;
            background: linear-gradient(45deg, #00ffff, #ff0080, #00ff80, #ffff00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-transform: uppercase;
            letter-spacing: 8px;
            position: relative;
            animation: glitchWave 3s ease-in-out infinite;
        }

        @keyframes glitchWave {
            0%, 100% { transform: skew(0deg); filter: hue-rotate(0deg); }
            25% { transform: skew(2deg); filter: hue-rotate(90deg); }
            50% { transform: skew(-1deg); filter: hue-rotate(180deg); }
            75% { transform: skew(1deg); filter: hue-rotate(270deg); }
        }

        .glitch-title::before,
        .glitch-title::after {
            content: 'NEXUS';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .glitch-title::before {
            color: #ff0080;
            animation: glitch1 2s infinite;
            z-index: -1;
        }

        .glitch-title::after {
            color: #00ffff;
            animation: glitch2 2.5s infinite;
            z-index: -2;
        }

        @keyframes glitch1 {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-5px); }
            40% { transform: translateX(3px); }
            60% { transform: translateX(-2px); }
            80% { transform: translateX(4px); }
        }

        @keyframes glitch2 {
            0%, 100% { transform: translateX(0); }
            15% { transform: translateX(3px); }
            35% { transform: translateX(-4px); }
            55% { transform: translateX(2px); }
            75% { transform: translateX(-3px); }
        }

        .hero-subtitle {
            font-size: 1.5rem;
            margin: 30px 0;
            color: rgba(255, 255, 255, 0.8);
            text-transform: uppercase;
            letter-spacing: 4px;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 1; }
        }

        /* 超级按钮 */
        .quantum-btn {
            display: inline-block;
            padding: 18px 45px;
            background: transparent;
            color: #00ffff;
            text-decoration: none;
            border: 2px solid #00ffff;
            border-radius: 50px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 3px;
            position: relative;
            overflow: hidden;
            transition: all 0.4s ease;
            margin-top: 30px;
        }

        .quantum-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
            transition: all 0.6s ease;
        }

        .quantum-btn:hover::before {
            left: 100%;
        }

        .quantum-btn:hover {
            color: #000;
            background: #00ffff;
            box-shadow: 
                0 0 30px #00ffff,
                0 0 60px #00ffff,
                0 0 90px #00ffff;
            transform: translateY(-10px) scale(1.1);
        }

        /* 能量波纹 */
        .energy-waves {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 800px;
            height: 800px;
            z-index: 5;
        }

        .wave {
            position: absolute;
            border: 2px solid rgba(0, 255, 255, 0.3);
            border-radius: 50%;
            animation: waveExpand 4s ease-out infinite;
        }

        .wave:nth-child(1) { animation-delay: 0s; }
        .wave:nth-child(2) { animation-delay: 1s; }
        .wave:nth-child(3) { animation-delay: 2s; }
        .wave:nth-child(4) { animation-delay: 3s; }

        @keyframes waveExpand {
            0% {
                width: 0;
                height: 0;
                opacity: 1;
                top: 50%;
                left: 50%;
            }
            100% {
                width: 800px;
                height: 800px;
                opacity: 0;
                top: 0;
                left: 0;
            }
        }

        /* 六边形网格内容区 */
        .hex-section {
            padding: 100px 50px;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 50, 0.8));
            position: relative;
        }

        .hex-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 50px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .hex-card {
            background: rgba(0, 255, 255, 0.05);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 20px;
            padding: 40px;
            position: relative;
            overflow: hidden;
            transition: all 0.5s ease;
            transform: perspective(1000px) rotateX(5deg);
        }

        .hex-card::before {
            content: '';
            position: absolute;
            top: -100%;
            left: -100%;
            width: 300%;
            height: 300%;
            background: conic-gradient(from 0deg, transparent, rgba(0, 255, 255, 0.3), transparent);
            animation: rotate 4s linear infinite;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .hex-card:hover::before {
            opacity: 1;
        }

        .hex-card:hover {
            transform: perspective(1000px) rotateX(0deg) translateZ(50px);
            box-shadow: 
                0 20px 40px rgba(0, 255, 255, 0.3),
                0 0 80px rgba(0, 255, 255, 0.2);
        }

        .hex-card h3 {
            font-size: 1.8rem;
            color: #00ffff;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .hex-card p {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.8;
            font-size: 1.1rem;
        }

        /* 数据流动画 */
        .data-stream {
            position: fixed;
            top: 0;
            right: -100px;
            width: 2px;
            height: 100vh;
            background: linear-gradient(180deg, transparent, #00ffff, transparent);
            animation: streamDown 3s linear infinite;
        }

        @keyframes streamDown {
            0% { transform: translateY(-100vh); }
            100% { transform: translateY(100vh); }
        }

        /* 全息投影效果 */
        .hologram {
            position: absolute;
            top: 20%;
            right: 10%;
            width: 200px;
            height: 200px;
            border: 2px solid rgba(0, 255, 255, 0.5);
            border-radius: 10px;
            background: rgba(0, 255, 255, 0.1);
            animation: holoFloat 8s ease-in-out infinite;
            z-index: 8;
        }

        @keyframes holoFloat {
            0%, 100% { transform: translateY(0) rotateZ(0deg); }
            25% { transform: translateY(-30px) rotateZ(5deg); }
            50% { transform: translateY(0) rotateZ(0deg); }
            75% { transform: translateY(30px) rotateZ(-5deg); }
        }

        .hologram::before {
            content: '< SYSTEM />';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #00ffff;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            text-align: center;
        }

        /* 响应式 */
        @media (max-width: 768px) {
            .glitch-title {
                font-size: 3rem;
                letter-spacing: 4px;
            }
            
            .holo-nav {
                flex-direction: column;
                gap: 20px;
                padding: 20px;
            }
            
            .hex-grid {
                grid-template-columns: 1fr;
                gap: 30px;
                padding: 0 20px;
            }
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* 启动动画 */
        .startup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeOut 3s ease-in-out forwards;
        }

        .loading-text {
            color: #00ffff;
            font-size: 2rem;
            font-family: 'Courier New', monospace;
            animation: typewriter 2s steps(20) forwards;
        }

        @keyframes typewriter {
            from { width: 0; }
            to { width: 100%; }
        }

        @keyframes fadeOut {
            0%, 80% { opacity: 1; }
            100% { opacity: 0; visibility: hidden; }
        }
    </style>
</head>
<body>
    <!-- 启动画面 -->
    <div class="startup-overlay">
        <div class="loading-text">NEXUS SYSTEM INITIALIZING...</div>
    </div>

    <!-- 3D网格背景 -->
    <div class="grid-bg"></div>
    
    <!-- DNA螺旋 -->
    <div class="dna-container">
        <div class="dna-strand" style="left: 20%; animation-delay: 0s;"></div>
        <div class="dna-strand" style="left: 40%; animation-delay: 2s;"></div>
        <div class="dna-strand" style="left: 60%; animation-delay: 4s;"></div>
        <div class="dna-strand" style="left: 80%; animation-delay: 6s;"></div>
    </div>
    
    <!-- 数据流 -->
    <div class="data-stream" style="right: 100px; animation-delay: 0s;"></div>
    <div class="data-stream" style="right: 200px; animation-delay: 1s;"></div>
    <div class="data-stream" style="right: 300px; animation-delay: 2s;"></div>
    
    <!-- 全息投影 -->
    <div class="hologram"></div>
    
    <!-- 自定义光标 -->
    <div class="custom-cursor"></div>
    
    <!-- 全息导航 -->
    <nav class="holo-nav">
        <a href="#home">核心</a>
        <a href="#about">矩阵</a>
        <a href="#tech">科技</a>
        <a href="#contact">连接</a>
    </nav>
    
    <!-- 主视觉区 -->
    <section class="hero-3d" id="home">
        <div class="energy-waves">
            <div class="wave"></div>
            <div class="wave"></div>
            <div class="wave"></div>
            <div class="wave"></div>
        </div>
        
        <div class="hero-content-3d">
            <h1 class="glitch-title">NEXUS</h1>
            <p class="hero-subtitle">The Future Is Now</p>
            <a href="#about" class="quantum-btn">Enter The Matrix</a>
        </div>
    </section>
    
    <!-- 六边形内容区 -->
    <section class="hex-section" id="about">
        <div class="hex-grid">
            <div class="hex-card">
                <h3>🌀 Quantum Core</h3>
                <p>利用量子计算的无限可能，突破传统计算限制。我们的量子核心技术将带你进入全新的数字维度，体验前所未有的计算速度与精度。</p>
            </div>
            <div class="hex-card">
                <h3>🔮 Neural Matrix</h3>
                <p>人工智能与神经网络的完美融合，创造出具有自我学习能力的智能系统。让机器不仅仅是工具，更是你的智能伙伴。</p>
            </div>
            <div class="hex-card">
                <h3>⚡ Hyper Reality</h3>
                <p>沉浸式的混合现实体验，模糊虚拟与现实的边界。通过先进的AR/VR技术，构建一个超越想象的数字世界。</p>
            </div>
            <div class="hex-card">
                <h3>🚀 Space-Time</h3>
                <p>突破时空限制的通信技术，实现瞬时的全球连接。无论你身在何处，都能与世界保持同步，体验零延迟的未来通信。</p>
            </div>
            <div class="hex-card">
                <h3>💎 Crystal Code</h3>
                <p>基于晶体结构的数据存储技术，实现永久性的信息保存。你的数据将以光的形式存储在量子晶体中，永不丢失。</p>
            </div>
            <div class="hex-card">
                <h3>🌊 Data Ocean</h3>
                <p>海量数据的智能分析与处理平台，让信息的海洋为你所用。通过深度学习算法，从数据中挖掘出隐藏的价值。</p>
            </div>
        </div>
    </section>

    <script>
        // 自定义光标和轨迹
        let cursor = document.querySelector('.custom-cursor');
        let trails = [];
        let trailCount = 20;
        
        // 创建光标轨迹
        for (let i = 0; i < trailCount; i++) {
            let trail = document.createElement('div');
            trail.className = 'cursor-trail';
            trail.style.opacity = (i / trailCount).toString();
            document.body.appendChild(trail);
            trails.push(trail);
        }
        
        let mouseX = 0, mouseY = 0;
        let positions = [];
        
        document.addEventListener('mousemove', (e) => {
            mouseX = e.clientX;
            mouseY = e.clientY;
            
            cursor.style.left = mouseX - 20 + 'px';
            cursor.style.top = mouseY - 20 + 'px';
            
            positions.unshift({x: mouseX, y: mouseY});
            if (positions.length > trailCount) {
                positions.pop();
            }
            
            trails.forEach((trail, index) => {
                if (positions[index]) {
                    trail.style.left = positions[index].x - 4 + 'px';
                    trail.style.top = positions[index].y - 4 + 'px';
                }
            });
        });
        
        // 悬停效果增强
        document.querySelectorAll('a, .hex-card').forEach(el => {
            el.addEventListener('mouseenter', () => {
                cursor.style.transform = 'scale(2)';
                cursor.style.background = 'radial-gradient(circle, rgba(255, 0, 128, 0.8), rgba(0, 255, 255, 0.6), transparent)';
            });
            
            el.addEventListener('mouseleave', () => {
                cursor.style.transform = 'scale(1)';
                cursor.style.background = 'radial-gradient(circle, rgba(0, 255, 255, 0.8), rgba(255, 0, 128, 0.6), transparent)';
            });
        });
        
        // 3D倾斜跟随鼠标
        document.addEventListener('mousemove', (e) => {
            const cards = document.querySelectorAll('.hex-card');
            const x = (e.clientX / window.innerWidth) * 2 - 1;
            const y = (e.clientY / window.innerHeight) * 2 - 1;
            
            cards.forEach(card => {
                const rect = card.getBoundingClientRect();
                const cardX = (e.clientX - rect.left - rect.width / 2) / 25;
                const cardY = (e.clientY - rect.top - rect.height / 2) / 25;
                
                card.style.transform = `perspective(1000px) rotateX(${-cardY}deg) rotateY(${cardX}deg) translateZ(${card.matches(':hover') ? '50px' : '0'})`;
            });
        });
        
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                }
            });
        });
        
        // 滚动视差效果
        window.addEventListener('scroll', () => {
            const scrolled = window.pageYOffset;
            const hologram = document.querySelector('.hologram');
            const dnaStrands = document.querySelectorAll('.dna-strand');
            
            hologram.style.transform = `translateY(${scrolled * 0.5}px) rotateZ(${scrolled * 0.1}deg)`;
            
            dnaStrands.forEach((strand, index) => {
                strand.style.transform = `translateY(${scrolled * (0.3 + index * 0.1)}px)`;
            });
        });
        
        // 随机颜色变化
        setInterval(() => {
            const colors = ['#00ffff', '#ff0080', '#00ff80', '#ffff00', '#8000ff'];
            const randomColor = colors[Math.floor(Math.random() * colors.length)];
            
            document.documentElement.style.setProperty('--random-color', randomColor);
            
            // 更新一些元素的颜色
            const streams = document.querySelectorAll('.data-stream');
            streams.forEach(stream => {
                stream.style.background = `linear-gradient(180deg, transparent, ${randomColor}, transparent)`;
            });
        }, 3000);
        
        // 键盘交互
        document.addEventListener('keydown', (e) => {
            if (e.key === ' ') {
                e.preventDefault();
                const waves = document.querySelectorAll('.wave');
                waves.forEach(wave => {
                    wave.style.animation = 'none';
                    wave.offsetHeight; // 触发重排
                    wave.style.animation = 'waveExpand 2s ease-out';
                });
            }
        });
        
        // 音频可视化效果（模拟）
        function createAudioVisualization() {
            const container = document.createElement('div');
            container.style.position = 'fixed';
            container.style.bottom = '30px';
            container.style.left = '30px';
            container.style.display = 'flex';
            container.style.gap = '3px';
            container.style.zIndex = '1000';
            
            for (let i = 0; i < 20; i++) {
                const bar = document.createElement('div');
                bar.style.width = '4px';
                bar.style.height = '20px';
                bar.style.background = `linear-gradient(180deg, #00ffff, #ff0080)`;
                bar.style.animation = `audioBar 1s ease-in-out infinite`;
                bar.style.animationDelay = `${i * 0.1}s`;
                container.appendChild(bar);
            }
            
            document.body.appendChild(container);
            
            // 添加音频条动画
            const style = document.createElement('style');
            style.textContent = `
                @keyframes audioBar {
                    0%, 100% { transform: scaleY(1); }
                    50% { transform: scaleY(${Math.random() * 3 + 1}); }
                }
            `;
            document.head.appendChild(style);
        }
        
        // 初始化
        document.addEventListener('DOMContentLoaded', () => {
            createAudioVisualization();
            
            // 延迟显示内容，增加震撼感
            setTimeout(() => {
                document.querySelector('.startup-overlay').style.display = 'none';
            }, 3000);
        });
    </script>
</body>
</html>